package com.learn.demo.message;

import jakarta.jms.JMSException;
import jakarta.jms.Message;
import jakarta.jms.Session;
import org.springframework.jms.core.MessageCreator;



public class Msg implements MessageCreator {

    @Override
    public Message createMessage(Session session) throws JMSException {

        return session.createTextMessage("测试消息");
    }
}
